Learn R Programming

phyloseq (version 1.12.2)

[: Method extensions to extraction operator for phyloseq objects.

Description

See the documentation for the Extract generic, defined in the R base-package for the expected behavior.

Arguments

Details

One special exception to standard behavior of these methods in phyloseq is that the drop argument is set internally to FALSE. This helps avoid bugs during complicated subsetting with multiple components, where it is necessary to be able to use a two dimensional indexing even if one of those dimensions has only 1 rank. Put another way, these phyloseq-defined extractions never collapse their result into a vector. See the documentation of Extract for more information about the drop argument.

See Also

Extract

Examples

Run this code
data(esophagus)
nrow(otu_table(esophagus))
nrow(otu_table(esophagus)[1:5, ])

Run the code above in your browser using DataLab